/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HeatedTableMat {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040047';
    }

    get categoryName() {
        return '\u52a0\u70ed\u684c\u57ab';
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'pZgR0NCr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pUPQ5vvA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'ppAXwLcC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3AZ0U',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HeatedTableMat;
